package com.ocom.common.enums;

public enum OpTypeDiffEnum {

    RecordingTimes("记次", 0),
    PlatformOffline("现金", 1),
    InterfaceRecharge("接口", 2),
    rechargeMachine("充值机", 3),
    platform("平台", 11),
    interfaces("接口", 12),
    SignIn("签到补助", 16),
    virtualAccount("虚拟账户", 100),
    virtualAccount1("公话钱包", 101),
    virtualAccount2("子钱包1", 102),
    virtualAccount3("子钱包2", 103),
    user("用户", 61),
    administrator("管理员", 62),
    weixin("微信", 201),
    Alipay("支付宝", 202),
    UnionPay("银联", 203),
    digitalCurrency("数字人民币", 204),
    ABCCode("农行码", 205),
    CCBCode("建行码", 206),
    ICBC("工行", 207),
    SheBAo("社保码", 208),
    WeChatBilling("微信代扣", 301),
    MicroSchoolWithholding("微校代扣", 302),
    AlipayWithholding("支付宝代扣", 303),
    JingdongWithholding("京东代扣", 304),
    WeChatFaceBrushing("微信刷脸代扣", 305),
    CCBWithholding("建行代扣", 306),
    ICBCWithholding("工行代扣", 307),
    ALIPAYWithholding("支付宝代扣", 308),
    CmbYwtPay("招行一网通", 309),
    CCBLifePay("建行生活", 310),
    NONGHANGDK("农行代扣",311),
    LanZhouPay("兰州银行", 312),
    ZhongXin("中信银行", 313),
    YingSheng("银盛", 314),
    NongHangJf("农行缴费", 315),
    LanbZhouDK("兰州银行扣款", 316);
    // 成员变量
    private String name;
    private int index;
    // 构造方法
    private OpTypeDiffEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
    // 普通方法
    public static String getName(int index) {
        for (OpTypeDiffEnum c : OpTypeDiffEnum.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }
    // get set 方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }
}
